package cn.ekuma.security.impl;

import java.util.Date;

import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;
import cn.ekuma.security.bean.I_Permission;

public class Permission implements I_AutoGeneratorStringKey, I_ModifiedLogBean<String>,I_Permission{
    String id;
    String roleId;
    int permissionId;
    int extPermission;
	private Date lastModified;
	String modelName;
	private String baseSecurityName;
    String memo;

	@Override
	public String getKey() {
		return id;
	}

	public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

	@Override
	public void setKey(String key) {
		this.id=key;
		
	}

	@Override
	public Date getLastModified() {
		return lastModified;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public int getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(int permissionId) {
		this.permissionId = permissionId;
	}

	public int getExtPermission() {
		return extPermission;
	}

	public void setExtPermission(int extPermission) {
		this.extPermission = extPermission;
	}

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	@Override
	public int getId() {
		return permissionId;
	}

	@Override
	public String getBaseSecurityName() {
		return baseSecurityName;
	}

	public void setBaseSecurityName(String name) {
		this.baseSecurityName=name;
	}

	@Override
	public String getMemo() {
		return memo;
	}
	
	public void setMemo(String memo){
		this.memo=memo;
	}
}
